<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>layui</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" th:href="@{/lay/lib/layui-v2.5.5/css/layui.css}" media="all">
    <link rel="stylesheet" th:href="@{/lay/css/public.css}" media="all">
    <link rel="stylesheet" th:href="@{/css/icon-font.css}">
    <style>
        body {
            background-color: #ffffff;
        }
    </style>
</head>
<body  >
<div class="layui-form layuimini-form">
    <input id="id" th:value="${data.getId()}" hidden="hidden" >
    <input id="userid" th:value="${data.getUserid()}" hidden="hidden">
    <div class="layui-form-item">
        <label class="layui-form-label required">出生日期</label>
        <div class="layui-input-block">
            <input type="text" name="birthday" th:value="${date}" class="layui-input" id="begin" placeholder="yyyy-MM-dd">
        </div>
    </div>





    <div class="layui-form-item">
        <label class="layui-form-label required">班级</label>
        <div id="message1" class="layui-input-block">
            <input type="text" id="className" name="className" th:value="${data.getClassName()}" th:onblur="exitClass()" lay-verify="required" lay-reqtext="班级名称不能为空" placeholder="请输入班级名称"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">学生姓名</label>
        <div id="name" class="layui-input-block">
            <input type="text" id="stuName" name="stuName" th:value="${data.getStuname()}" th:onblur="" lay-verify="required"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">性别</label>
        <div id="sex" class="layui-input-block">
         <select id="gender" name="gender"  lay-verify="required">
             <option th:selected="${data.getGender() eq 0}" id="gender0">男</option>
             <option th:selected="${data.getGender() eq 1}" id="gender1">女</option>
         </select>
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label required">身份证</label>
        <div id="card" class="layui-input-block">
            <input  type="text" id="idcard" name="idcard" th:value="${data.getIdcard()}" th:onblur="checkIdCard()" lay-verify="required"
                   class="layui-input">
        </div>
    </div>


    <div class="layui-form-item">
        <label class="layui-form-label required">家庭住址</label>
        <div id="home" class="layui-input-block">
            <input type="text" id="address" name="address" th:value="${data.getAddress()}" th:onblur="" lay-verify="required"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">手机号</label>
        <div id="Iphone" class="layui-input-block">
            <input type="text" id="phone" name="phone" th:value="${data.getPhone()}" th:onblur="checkPhone()" lay-verify="required"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">qq账号</label>
        <div id="Iqq" class="layui-input-block">
            <input type="text" id="qq" name="qq" th:value="${data.getQq()}" th:onblur="checkQQ()" lay-verify="required"
                   class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label required">邮箱</label>
        <div id="Iemail" class="layui-input-block">
            <input type="text" id="email" name="email" th:value="${data.getEmail()}" th:onblur="checkEmail()" lay-verify="required"
                   class="layui-input">
        </div>
    </div>




    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn">确认保存</button>
        </div>
    </div>
</div>
</div>
<script th:src="@{/lay/lib/jquery-3.4.1/jquery-3.4.1.min.js}"></script>
<script th:src="@{/lay/lib/layui-v2.5.5/layui.js}" charset="utf-8"></script>
<script th:src="@{/js/management/student/editCode.js}"></script>
<script th:src="@{/js/management/student/function.js}"></script>


</body>
</html>